package com.example.demo.controller;


import com.example.demo.entity.SubDistrictTownIndustry;
import com.example.demo.service.SubDistrictTownIndustryService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import sun.awt.SunHints;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@RequestMapping("/SubDistrictTownIndustry")
@Controller
public class SubDistrictTownIndustryController {



    @Resource
    SubDistrictTownIndustryService subDistrictTownIndustrialInvestmentService;

    //全部数据
    @GetMapping("/SelectAll")
    @ResponseBody
    @CrossOrigin
    public List<SubDistrictTownIndustry> SelectAll(@RequestParam int year , @RequestParam int month){
        return  subDistrictTownIndustrialInvestmentService.SelectAll(year,month);
    }



}
